package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 设置门岗
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_doorpost")
public class CarParkDoorpost extends Model<CarParkDoorpost> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "did", type = IdType.ASSIGN_ID)
    private String did;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 停车场
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 进出标志
     */
    @TableField("access_sign")
    private String accessSign;

    public void freeData() {
        this.did = null;
        this.name = null;
        this.addTime = null;
        this.updateTime = null;
        this.parkId = null;
        this.accessSign = null;
    }

}
